package com.liliudong.cursormate.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liliudong.cursormate.entity.SysUser;

/**
 * @author Liudong.li
 * @description 针对表【sys_user(系统用户表)】的数据库操作Service
 * @createDate 2023-10-24 22:29:24
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 用户登录
     *
     * @param sysUser
     * @return {@link SaTokenInfo}
     */
    SaTokenInfo login(SysUser sysUser);

    /**
     * 个人信息
     *
     * @return {@link SysUser}
     */
    SysUser profile();

    /**
     * 按组织id计数
     *
     * @param orgId 组织id
     * @return int
     */
    int countByOrgId(Long orgId);
}
